package com.manage.competition.repository;

import com.manage.competition.entity.Permission;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * Create with IDEA
 *
 * @Author:Vantcy
 * @Date: Create in 11:30 2019/1/27
 * @Description:
 */
public interface PermissionRepository extends JpaSpecificationExecutor<Permission>,JpaRepository<Permission,Long> {
    /**
     * 根据roleId查找权限信息
     * @param roleId
     * @return
     */
    List<Permission> findAllByRoleId(Long roleId);
}
